package org.netbeans.ddlmodule;

import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.ImageIcon;
import org.openide.util.NbBundle;
import org.openide.util.Utilities;
import org.openide.windows.TopComponent;

/**
 * Action which shows DDL component.
 */
public class DDLAction extends AbstractAction {

    public DDLAction() {
        super(NbBundle.getMessage(DDLAction.class, "CTL_DDLAction"));
//        putValue(SMALL_ICON, new ImageIcon(Utilities.loadImage(DDLTopComponent.ICON_PATH, true)));
    }

    public void actionPerformed(ActionEvent evt) {
        TopComponent win = DDLTopComponent.findInstance();
        win.open();
        win.requestActive();
    }
}